local skel = fk.CreateSkill {
  name = "efengqi__biyue",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["efengqi__biyue"] = "闭月",
  [":efengqi__biyue"] = "锁定技，结束阶段，你每有一个区域没有牌，便摸一张牌。",

  ["$efengqi__biyue1"] = "失礼了～",
  ["$efengqi__biyue2"] = "羡慕吧～",
}

skel:addEffect(fk.EventPhaseStart, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.phase == Player.Finish
    and table.find({"h","e","j"}, function(flag) return #player:getCardIds(flag) == 0 end)
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(#table.filter({"h","e","j"}, function(flag) return #player:getCardIds(flag) == 0 end), skel.name)
  end,
})



return skel
